﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Comm
{
    public static class GlobalValues
    {
        /// <summary>
        /// 设备编号
        /// </summary>
        public static string EquNo { get; set; }
        /// <summary>
        /// 员工编号
        /// </summary>
        public static string EmpNo { get; set; }
        /// <summary>
        /// 批次号
        /// </summary>
        public static string BatchNo { get; set; }
        /// <summary>
        /// 胶钉批次号
        /// </summary>
        public static string JDBatchNo { get; set; }

        /// <summary>
        /// 标准注液量
        /// </summary>
        public static float InjStd { get; set; }

        /// <summary>
        /// 注液量偏差值
        /// </summary>
        public static float InjOffset { get; set; }

        public static string WorkNo { get; set; }

        public static string DeviceNo { get; set; }

        public static string UserNo { get; set; }

        public static string BillNo { get; set; }
        public static string Addr { get; set; }
        /// <summary>
        /// 班组
        /// </summary>
        public static string ClassTeam { get; set; } = "";
        /// <summary>
        /// 班次
        /// </summary>
        public static string Classes { get; set; } = "";

        static GlobalValues()
        {
            WorkNo = ConfigurationManager.AppSettings["WorkNo"];
            DeviceNo = ConfigurationManager.AppSettings["EquNo"];
            Addr = ConfigurationManager.AppSettings["Ipaddr"];
            UserNo = ConfigurationManager.AppSettings["UserNo "];
            BillNo = ConfigurationManager.AppSettings["BillNo "];
            BatchNo = ConfigurationManager.AppSettings["BatchNo "];
        } 
    }
}
